<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace Home\Controller;
use Common\Controller\HomebaseController; 
/**
 * 首页
 */
class IndexController extends HomebaseController {
	
    //首页
	public function index() {

		/* 轮播 */
		$slide=M("slide")->where("slide_status='1' and slide_cid='1'")->order("listorder asc")->select();
		$this->assign("slide",$slide);

		/*版权信息*/
		$copyRight=M("config")->where("id=1")->getField("copyright");
		$this->assign("copyRight",$copyRight);
		/*获取后台设置的下载二维码*/
		$qr_url=M("config")->where("id=1")->getField("qr_url");
		$this->assign("qr_url",$qr_url);
    	$this->display();
    }	
	
	

}


